// Package v1
// @Author Spume
// @Date 2025-01-13 14:09

package v1

import (
	"gitee.com/spume/common_service/app/billing/api/schmea"
	"gitee.com/spume/common_service/utility/api"
	"github.com/gogf/gf/v2/frame/g"
)

type BillingCreateReq struct {
	g.Meta `path:"/billing" method:"post"`
	schmea.CommonReq

	*schmea.BillingBatch
}

type BillingCreateRes struct {
	BillId string `json:"billId"`
}

type BillingCreateBatchReq struct {
	g.Meta `path:"/billing/batch" method:"post"`
	schmea.CommonReq
	Billings []*schmea.BillingBatch `json:"billings"`
}

type BillingCreateBatchRes struct {
	BillIds []string `json:"billIds"`
}

type BillingListReq struct {
	g.Meta `path:"/billing" method:"get"`
	schmea.CommonReq

	MemberId     string `p:"memberId" v:"required"`
	CurrencyType int    `p:"currencyType" v:"required"`

	*api.PageLstReq
}

type BillingListRes struct {
	*api.PageLstRes[*schmea.Billing]
}
